package com.ruoyi.common.core.domain.business.waterPrice;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 农户水费核算对象 wi_farmfee_y
 * 
 * @author ps
 * @date 2023-02-16
 */
@Data
public class WiFarmfeeY extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 计收年度 */
    @NotBlank(message = "年度不能为空")
    private String feeYr;

    /** 农户代码 */
    @NotBlank(message = "农户标识不能为空")
    private String farmCd;

    private String farmNm;

    /** 地块性质 */
    @Excel(name = "地块性质")
    private String landAttr;

    /** 灌溉方式 */
    @Excel(name = "灌溉方式")
    private String irrMode;

    /** 种植面积 */
    @Excel(name = "种植面积")
    private BigDecimal landArea;

    /** 实际水量 */
    @Excel(name = "实际水量")
    private BigDecimal landVol;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal unitPrice;

    /** 水费 */
    @Excel(name = "水费")
    @NotNull (message = "水费不能为空")
    private BigDecimal waterFee;

    /** 核算人 */
    @Excel(name = "核算人")
    private String operId;

    /** 核算时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "核算时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date operTime;

    /** 备注 */
    @Excel(name = "备注")
    private String operMark;

    @NotBlank(message = "成功标记不能为空")
    private String isOK;

    private long attrNum;//凭证张数

    public void setFeeYr(String feeYr) 
    {
        this.feeYr = feeYr;
    }

    public String getFeeYr() 
    {
        return feeYr;
    }
    public void setFarmCd(String farmCd) 
    {
        this.farmCd = farmCd;
    }

    public String getFarmCd() 
    {
        return farmCd;
    }
    public void setLandAttr(String landAttr) 
    {
        this.landAttr = landAttr;
    }

    public String getLandAttr() 
    {
        return landAttr;
    }
    public void setIrrMode(String irrMode) 
    {
        this.irrMode = irrMode;
    }

    public String getIrrMode() 
    {
        return irrMode;
    }
    public void setLandArea(BigDecimal landArea)
    {
        this.landArea = landArea;
    }

    public BigDecimal getLandArea()
    {
        return landArea;
    }
    public void setLandVol(BigDecimal landVol)
    {
        this.landVol = landVol;
    }

    public BigDecimal getLandVol()
    {
        return landVol;
    }
    public void setUnitPrice(BigDecimal unitPrice)
    {
        this.unitPrice = unitPrice;
    }

    public BigDecimal getUnitPrice()
    {
        return unitPrice;
    }
    public void setWaterFee(BigDecimal waterFee)
    {
        this.waterFee = waterFee;
    }

    public BigDecimal getWaterFee()
    {
        return waterFee;
    }
    public void setOperId(String operId) 
    {
        this.operId = operId;
    }

    public String getOperId() 
    {
        return operId;
    }
    public void setOperTime(Date operTime) 
    {
        this.operTime = operTime;
    }

    public Date getOperTime() 
    {
        return operTime;
    }
    public void setOperMark(String operMark) 
    {
        this.operMark = operMark;
    }

    public String getOperMark() 
    {
        return operMark;
    }


    @Override
    public String toString() {
        return "WiFarmfeeY{" +
                "feeYr='" + feeYr + '\'' +
                ", farmCd='" + farmCd + '\'' +
                ", landAttr='" + landAttr + '\'' +
                ", irrMode='" + irrMode + '\'' +
                ", landArea=" + landArea +
                ", landVol=" + landVol +
                ", unitPrice=" + unitPrice +
                ", waterFee=" + waterFee +
                ", operId='" + operId + '\'' +
                ", operTime=" + operTime +
                ", operMark='" + operMark + '\'' +
                ", isOK='" + isOK + '\'' +
                ", attrNum=" + attrNum +
                '}';
    }
}
